
import request from '@/utils/request'
// 与role相关的异步请求
//查询
export function search(data) {
  return request({
    url: 'role/search',
    method: 'post',
    data
  })
}
//添加与修改
export function save(data) {
  return request({
    url: 'role/save',
    method: 'post',
    data
  })
}
//删除
export function delOne(data) {
  return request({
    url: 'role/delOne',
    method: 'post',
    data
  })
}
//批量删除
export function delByIds(data) {
  return request({
    url: 'role/delByIds',
    method: 'post',
    data
  })
}